package com.snpic.appaw.module.third.api.jpush;

import com.fhs.core.trans.anno.AutoTrans;
import com.snpic.appaw.framework.common.pojo.CommonResult;
import com.snpic.appaw.module.third.api.jpush.dto.LoginTokenVerifyReqDTO;
import com.snpic.appaw.module.third.api.jpush.dto.LoginTokenVerifyRespDTO;
import com.snpic.appaw.module.third.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import static com.snpic.appaw.module.third.api.jpush.JPushApi.PREFIX;
/**
 * @author JiJun
 * @date 2025/9/9 16:50
 * @修改时间 2025/9/9 16:50
 * @description 极光安全认证，https://docs.jiguang.cn/jverification/server/rest_api/verify_api
 */
@FeignClient(name = ApiConstants.NAME) // TODO 芋艿：fallbackFactory =
@Tag(name = "RPC 服务 - 极光JPush安全认证")
@AutoTrans(namespace = PREFIX, fields = {"nickname"})
public interface JPushApi {

	String PREFIX = ApiConstants.PREFIX + "/jpush";

	@PostMapping(PREFIX + "/loginTokenVerify")
	@Operation(summary = "一键登录API_H5")
	public CommonResult<LoginTokenVerifyRespDTO> loginTokenVerify_H5(@RequestBody @Validated LoginTokenVerifyReqDTO reqDTO);
}
